﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PatientSearch.aspx.cs" Inherits="IDML.Web.Modules.Patient.PatientSearch" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1><%: Title %>.</h1>
        <h2>Patient Search</h2>
    </hgroup>

    <fieldset>
        <section class="contact">
            <header>
                <h3>Patient Serach</h3>
            </header>
            <p>
                <span class="label">First Name</span>
                <span>
                    <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                </span>
            </p>
            <p>
                <span class="label">Last Name</span>
                <span>
                    <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                </span>
            </p>

            <p>
                <span class="label">Specimen No</span>
                <span>
                    <asp:TextBox ID="txtSpecimenNo" runat="server"></asp:TextBox>
                </span>
            </p>
               <p>
                <span class="label">PhoneNumber</span>
                <span>
                    <asp:TextBox ID="txtPhoneNumber" runat="server"></asp:TextBox>
                </span>
            </p>
        </section>
        <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
    </fieldset>

    <asp:UpdatePanel ID="orderDetailsUpdatePanel" runat="server">
        <ContentTemplate>
            <asp:GridView ID="gwPatientSearch" DataKeyNames="PatientId"  AutoGenerateColumns="false" runat="server" EmptyDataText="No Records found!">
                <Columns>
                    <asp:BoundField DataField="PatientId" HeaderText="PatientId" Visible="false" ReadOnly="true" />
                    <asp:BoundField DataField="FirstName" HeaderText="First Name"  />
                    <asp:BoundField DataField="LastName" HeaderText="Last Name" />
                    <asp:BoundField DataField="SpecimenNo" HeaderText="Specimen No" />
                    <asp:BoundField DataField="PhoneNumber" HeaderText="Phone Number" />
                  <%--  <asp:TemplateField ShowHeader="False">
                        <ItemTemplate>
                            <asp:ImageButton ID="imgBtnDel" runat="server" CommandName="Delete" ImageUrl="~/Images/icon_delete.png" />
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                </Columns>
            </asp:GridView>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>

</asp:Content>
